import http from '@/common/utils/request.js'

export const config = {
	//获取列表
	getConfigList(data){
		return http.get('/system/config/', {params:data, custom:{}})
	},
	//获取详情
	getItemById(data){
		return http.post('/system/config/getItemById/', data, {custom:{}})
	},
	//创建
	createConfig(data){
		return http.post('/system/config/createAction/', data, {custom:{}})
	},
	//新增
	updateConfig(data){
		return http.post('/system/config/updateAction/', data, {custom:{}})
	},
	//根据key获取config
	getConfigByKey(data){
		return http.post('/system/config/getConfigByKey/', data, {custom:{}})
	},
}